<?php

namespace lxs\tools;

abstract class  Singleton
{
    /**
     * @var static
     */
    protected static $instance;

    public static function getInstance(...$args)
    {
        if (!isset(static::$instance)) {
            static::$instance = new static(...$args);
        }
        return static::$instance;
    }

    final protected function __clone()
    {

    }
}
